package cloud.alibaba.study.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cloud.alibaba.study.dao.account.AccountDao;
import cloud.alibaba.study.service.IAccountService;

@Service
public class AccountServiceImpl implements IAccountService {
	@Autowired
	private AccountDao accountDao;

	@Override
	public void decrease(Long userId, BigDecimal money) {
		accountDao.decrease(userId,money);
	}
}
